package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface UserMapper {
    User selectByOpenId(String openid);

    void insert(User user);

    @Select("SELECT * FROM user WHERE id = #{id}")
    User selectById(Long id);

    Integer countByCreateTime(Map<Object, Object> map);
}
